﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="ViewMembersNeedingWelcomeKits.aspx.cs" 
    Inherits="TRL.TRLAdmin.Members.ViewMembersNeedingWelcomeKits" Trace="false"%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <nav>
        <div id="jCrumbs" class="breadCrumb module">
            <ul>
                <li>
                    <a href="#"><i class="icon-home"></i></a>
                </li>
                <li>
                    Membership Management
                </li>
                <li>
                    View Memberships Needing Membership Kit
                </li>
            </ul>
        </div>
    </nav>

    <div class="page-header">
        <h1>View Memberships Needing Membership Kit</h1>
    </div>

     <div class="row-fluid">
        <asp:GridView ID="MembershipGrid" runat="server" AllowPaging="False" 
            AllowSorting="False" AutoGenerateColumns="False" 
            DataKeyNames="membershipId" 
            CssClass="table table-striped table-condensed table-memberships"
            EnableViewState="false"
            BorderStyle="None"
            data-rowlink="a" CellSpacing="-1" GridLines="None"
            AutoGenerateEditButton="false">
            <Columns>
                <asp:TemplateField  HeaderText="" SortExpression="" HeaderStyle-CssClass="">
                    <ItemTemplate>
                         <a title="Edit" href='AddEditMember.aspx?mode=edit&membershipId=<%# Eval("membershipId") %>&displayName=<%# Eval("firstName") %>+<%# Eval("lastName") %>'><i class="splashy-document_letter_edit"></i></a>
                    </ItemTemplate>
                </asp:TemplateField>
                
                <asp:BoundField DataField="membershipType" HeaderText="Type" 
                    SortExpression="membershipType" />
                <asp:BoundField DataField="firstName" HeaderText="First Name" 
                    SortExpression="firstName" />
                <asp:BoundField DataField="lastName" HeaderText="Last Name" 
                    SortExpression="lastName" />
                <asp:BoundField DataField="membershipExpiration" DataFormatString = "{0:d}" 
                    HeaderText="Exp" SortExpression="membershipExpiration" />
                <asp:BoundField DataField="phoneNumber" HeaderText="Phone" 
                    SortExpression="phoneNumber" />
                <asp:TemplateField  HeaderText="Email" SortExpression="Email">
                    <ItemTemplate>
                        <a href="Mailto:<%# Eval("Email") %>"><%# Eval("Email") %></a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="address" HeaderText="Address" 
                    SortExpression="address" />
                <asp:BoundField DataField="city" HeaderText="City" SortExpression="City" />
                <asp:BoundField DataField="state" HeaderText="State" SortExpression="State" />
                <asp:BoundField DataField="postalCode" HeaderText="Zip" 
                    SortExpression="postalCode" />
<%--                <asp:BoundField DataField="PaperNewsletter" 
                    HeaderText="Mail?" SortExpression="sendPaperNewsletter" />
                <asp:BoundField DataField="ENewsletter" HeaderText="EMail?" 
                    SortExpression="sendENewsletter" />--%>
                <asp:BoundField DataField="Contact" HeaderText="Contact?" 
                    SortExpression="okayToContact" />
            </Columns>
            <EmptyDataTemplate>
                No members currently need welcome kits.
            </EmptyDataTemplate>
        </asp:GridView>
    </div>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="scripts" runat="server">
    <script type="text/javascript">
        // Set the sidebar orientation to the section and page 
        // of this document
        $(document).ready(function () {
            $('#viewMembersNeedingWelcomeKits').addClass("active");
            $('#collapseOne').addClass("in");
        });
    </script>
</asp:Content>
